package com.jar.exercise.集合和数据结构.数组转集合;

import java.util.ArrayList;
import java.util.Collections;

public class Demo {
    public static void main(String[] args) {
        String[] strArr = {"中", "管", "得劲"};
        ArrayList<String> stringArrayList = new ArrayList<>(strArr.length);
        Collections.addAll(stringArrayList, strArr);
        stringArrayList.forEach(System.out::println);
    }

}
